#ifndef NETGAME_H
#define NETGAME_H

#include <QMainWindow>
#include <QPainter>
#include <QPushButton>
#include <QDebug>
#include <QMouseEvent>
#include <QMessageBox>
#include "gamestart.h"
class netgame : public QMainWindow
{
    Q_OBJECT
public:
    explicit netgame(QWidget *parent = nullptr);
    Gamestart* games=NULL;
    void paintEvent(QPaintEvent *);
    virtual void mousePressEvent(QMouseEvent *event);
    void regret_chess();
    bool winorn(int i,int j);
    int x;
    int y;
    bool turn;
    bool gamestatus;

signals:
    void game_back();
    void game_over();
    void sent_black();
    void sent_white();

public slots:
};

#endif // NETGAME_H
